import  request from '@/utils/request';
import {lToMl, yuanToFen} from "@/utils/unitUtil";

//获取当前公司id
export function getCompanyId() {
  return request({
    url: 'api/company/get-company-id',
    method: 'get',
  })
}

//获取当前公司流水记录
export function getCompanyWalletDeal(query) {
  return request({
    url: 'api/wallet-com/list',
    method: 'get',
    params: query
  })
}

//公司钱包充值
export function companyRecharge(data) {
  const unit = lToMl(data.walletFree)
  data.walletFree = unit
  return request({
    url: 'api/wallet-com',
    method: 'put',
    data: data
  })
}
